package org.cskj.demo.pojo;

import java.util.Date;

public class Inshop {
    private Integer inid;

    private Integer shopid;

    private Integer innum;

    private String inusname;

    private String inidcard;

    private Date inaddtime;

    private Integer usid;
    private User user;
    private Shop shop;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Inshop(Integer inid, Integer shopid, Integer innum, String inusname, String inidcard, Date inaddtime, Integer usid, User user, Shop shop) {
        this.inid = inid;
        this.shopid = shopid;
        this.innum = innum;
        this.inusname = inusname;
        this.inidcard = inidcard;
        this.inaddtime = inaddtime;
        this.usid = usid;
        this.user = user;
        this.shop = shop;
    }

    @Override
    public String toString() {
        return "Inshop{" +
                "inid=" + inid +
                ", shopid=" + shopid +
                ", innum=" + innum +
                ", inusname='" + inusname + '\'' +
                ", inidcard='" + inidcard + '\'' +
                ", inaddtime=" + inaddtime +
                ", usid=" + usid +
                ", user=" + user +
                ", shop=" + shop +
                '}';
    }

    public Shop getShop() {
        return shop;
    }

    public void setShop(Shop shop) {
        this.shop = shop;
    }

    public Inshop(Integer inid, Integer shopid, Integer innum, String inusname, String inidcard, Date inaddtime, Integer usid) {
        this.inid = inid;
        this.shopid = shopid;
        this.innum = innum;
        this.inusname = inusname;
        this.inidcard = inidcard;
        this.inaddtime = inaddtime;
        this.usid = usid;
    }

    public Inshop() {
        super();
    }

    public Integer getInid() {
        return inid;
    }

    public void setInid(Integer inid) {
        this.inid = inid;
    }

    public Integer getShopid() {
        return shopid;
    }

    public void setShopid(Integer shopid) {
        this.shopid = shopid;
    }

    public Integer getInnum() {
        return innum;
    }

    public void setInnum(Integer innum) {
        this.innum = innum;
    }

    public String getInusname() {
        return inusname;
    }

    public void setInusname(String inusname) {
        this.inusname = inusname == null ? null : inusname.trim();
    }

    public String getInidcard() {
        return inidcard;
    }

    public void setInidcard(String inidcard) {
        this.inidcard = inidcard == null ? null : inidcard.trim();
    }

    public Date getInaddtime() {
        return inaddtime;
    }

    public void setInaddtime(Date inaddtime) {
        this.inaddtime = inaddtime;
    }

    public Integer getUsid() {
        return usid;
    }

    public void setUsid(Integer usid) {
        this.usid = usid;
    }
}